package net.zjitc;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@Component("user1")
@Scope("singleton")
public class User {
    @Value("1")
    private int id;
    @Value("李四")
    private String name;
    @Value("20")
    private int age;
}
